package com.owc.common.enums;

import lombok.Getter;

/**
 * @Author Xiaoming
 * @Date 2019/9/11 15:07
 * @Version 1.0.0
 **/
@Getter
public enum ExceptionEnum {

    SUCCESS(10000,"OK","成功"),
    UNKNOWN_ERR(10001,"Service exception","服务器系统错误"),
    TOKEN_EXPIRE_ERR(10004,"Authentication failed or expired","身份验证失败或过期"),
    PARAMS_DECRYPT_ERR(10008,"Parameter decryption failed","参数解密失败"),
    REQUEST_PARAMS_ERR(10009,"Required parameters of the request header","请求头缺失必备参数"),
    BAD_REQUEST_ERR(10010,"Request bad","请求失败"),
    PARAMS_MISS_ERR(10011,"Params missing.","参数缺失"),
    INVALID_PARAMS_ERR(10012,"Parameter validation failed","参数验证失败"),
    PLEASE_ENTER_PHONE(10013,"Please enter the phone number","请输入手机号码"),
    PLEASE_ENTER_PASSWORD(10014,"Please enter the password","请输入密码"),
    PLEASE_ENTER_AUTHCODE(10015,"please enter verification code","请输入验证码"),
    INVALID_TYPE_ERR(10016,"Unrecognized type","无法识别的请求类型"),
    USERNAME_OR_PWD_ERR(10017,"wrong user name or password","用户名或密码错误"),
    NOT_FOUND_USER(10018,"No username found","用户名未查找到"),
    CLIENT_INIT_ERR(50001,"","调用钱包服务的客户端初始化失败"),
    USER_INVALID_ERR(10019,"Account is abnormal","账号不存在或已被冻结"),
    INVALID_CLIENT_TYPE_ERR(10020,"Exceptional client type","异常的客户端类型"),
    ENUM_FOUND_ERR(10021,"Enumeration value traversal failed","枚举值遍历失败"),
    INVALID_AUTH_CODE(10022,"Verification code error","验证码错误"),
    INVALID_PHONE_ERR(10023,"Mobile phone number format is abnormal","手机号码格式异常"),
    ADDRESS_FORMAT_ERR(10024,"eth address format error","钱包地址格式错误"),
    INVALID_TOKEN_ERR(10026,"Undefined token type","未定义的代币类型"),
    PLATFORM_BALANCE_LACK(10027,"Insufficient platform wallet balance","平台余额不足以支付此笔转账申请，请充值后再进行审核"),
    TRANSFER_TYPE_ERR(10028,"Transaction type is undefined","交易类型未定义"),
    USER_INFO_ERR(10029,"User information is abnormal","用户信息异常"),
    NOT_FOUND_VERSION_TYPE(10030,"Not found version type","异常的版本类型"),
    PROCESS_ORDER_ERR(10031,"There are orders in progress","存在进行中的转账订单"),
    INVALID_PRODUCT_ERR(10032,"Invalid product","异常的产品类型"),
    BALANCE_BELOW_ERR(10033,"Insufficient account balance","账户余额不足"),
    BEYOND_MAX_LIMIT(10034,"Exceeded maximum purchase limit","超出最大购买限制"),
    RATE_CHANGE(10035,"Exchange rate changes","汇率发生改变"),
    NOT_EXIST_ORDER(10036,"Non-existing order","不存在的订单"),
    UPLOAD_ERR(10037,"Upload failed","上传失败"),
    PRODUCT_INVALID_ERR(10038,"Product status invalid","产品状态验证失败"),
    ORDER_ALREADY_REDEEM(10039,"Order already redeem","订单已赎回"),
    PLATFORM_BALANCE_MISS(10040,"Insufficient ETH balance on the platform","平台ETH余额不足"),
    OTHER_LOGIN_ERR(10041,"Login elsewhere","已在其他地方登录");

    private Integer code;

    private String message;

    private String CNMessage;

    ExceptionEnum(Integer code, String message,String CNMessage) {
        this.code = code;
        this.message = message;
        this.CNMessage = CNMessage;
    }
}
